<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ssc32="http://www.promrds.com/contracts/2008/01/ssc32.html">
  <xsl:output method="html" version="4.01" encoding="utf-8" indent="yes" 
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
              doctype-system="http://www.w3.org/TR/html4/loose.dtd" />

  <xsl:template match="/ssc32:SSC32State">
    <html>
      <head>
        <title>SSC32 Controller</title>
        <link rel="stylesheet" type="text/css" href="/resources/dss/Microsoft.Dss.Common.DSS.css" />
      </head>
      <body>
        <h2>SSC32 Controller State</h2>
        <form action="" method="post">
          <input type="hidden" name="operation" value="pos" />
          <table cellpadding="5">
            <tr class="odd">
              <th>Servo 0</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse0">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse0"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 11</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse11">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse11"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 22</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse22">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse22"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr>
              <th>Servo 1</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse1">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse1"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 12</th>
              <td>
                  <input type="text" maxlength="4" size="1" name="ServoPulse12">
                    <xsl:attribute name="value">
                      <xsl:value-of select="ssc32:ServoPulse12"/>
                    </xsl:attribute>
                  </input>
                </td>
              <th>Servo 23</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse23">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse23"/>
                  </xsl:attribute>
                </input>
              </td>
              </tr>
            <tr class="odd">
              <th>Servo 2</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse2">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse2"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 13</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse13">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse13"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 24</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse24">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse24"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr>
              <th>Servo 3</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse3">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse3"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 14</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse14">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse14"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 25</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse25">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse25"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr class="odd">
              <th>Servo 4</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse4">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse4"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 15</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse15">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse15"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 26</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse26">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse26"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr>
              <th>Servo 5</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse5">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse5"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 16</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse16">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse16"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 27</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse27">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse27"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr class="odd">
              <th>Servo 6</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse6">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse6"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 17</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse17">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse17"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 28</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse28">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse28"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr>
              <th>Servo 7</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse7">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse7"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 18</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse18">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse18"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 29</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse29">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse29"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr class="odd">
              <th>Servo 8</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse8">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse8"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 19</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse19">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse19"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 30</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse30">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse30"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr>
              <th>Servo 9</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse9">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse9"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 20</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse20">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse20"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 31</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse31">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse31"/>
                  </xsl:attribute>
                </input>
              </td>
            </tr>
            <tr class="odd">
              <th>Servo 10</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse10">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse10"/>
                  </xsl:attribute>
                </input>
              </td>
              <th>Servo 21</th>
              <td>
                <input type="text" maxlength="4" size="1" name="ServoPulse21">
                  <xsl:attribute name="value">
                    <xsl:value-of select="ssc32:ServoPulse21"/>
                  </xsl:attribute>
                </input>
              </td>
              <td>
                <input type="Submit" Value="Change" />
              </td>
              <td></td>
            </tr>
          </table>
        </form>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>